From 84d6099cb883f1233c9abd2ebee154fdf8740c30 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 8 Sep 2008 23:33:09 +0000 Subject: [PATCH] Also mark new user edits here too --- includes/specials/SpecialWatchlist.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index ccdc722977..9257c61b55 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -91,7 +91,7 @@ function wfSpecialWatchlist( $par ) { } $dbr = wfGetDB( DB_SLAVE, 'watchlist' ); - list( $page, $watchlist, $recentchanges ) = $dbr->tableNamesN( 'page', 'watchlist', 'recentchanges' ); + list($page,$watchlist,$recentchanges,$user) = $dbr->tableNamesN('page','watchlist','recentchanges','user'); $watchlistCount = $dbr->selectField( 'watchlist', 'COUNT(*)', array( 'wl_user' => $uid ), __METHOD__ ); @@ -198,9 +198,10 @@ function wfSpecialWatchlist( $par ) { } else { $wltsfield = ''; } - $sql = "SELECT ${recentchanges}.* ${wltsfield} + $sql = "SELECT ${recentchanges}.* ${wltsfield}, {$user}.user_editcount, {$user}.user_registration FROM $watchlist,$recentchanges LEFT JOIN $page ON rc_cur_id=page_id + LEFT JOIN $user ON (rc_user !='0' AND rc_user = user_id) WHERE wl_user=$uid AND wl_namespace=rc_namespace AND wl_title=rc_title -- 2.20.1